package com.fujica.invoicing.entity;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 销售表(TSell)实体类
 *
 * @author makejava
 * @since 2020-08-11 11:26:03
 */
@Table(name = "t_sell")
public class TSell implements Serializable {
    private static final long serialVersionUID = 365896097811332019L;
    /**
     * 销售单id
     */
    @Id
    private Integer id;
    /**
     * 门店id
     */
    private Integer sId;

    public TSell() {
    }

    public TSell(Integer sId, Integer eId, BigDecimal sAmount, BigDecimal actuallyMoney, BigDecimal change, Date sellDate) {
        this.sId = sId;
        this.eId = eId;
        this.sAmount = sAmount;
        this.actuallyMoney = actuallyMoney;
        this.change = change;
        this.sellDate = sellDate;
    }

    /**
     * 员工id
     */
    private Integer eId;
    /**
     * 支付方式  1：微信支付 2：支付宝支付 3：现金支付 4：银联支付 5：信用卡支付
     */
    private Integer payMethodId;
    /**
     * 总金额
     */
    private BigDecimal sAmount;
    /**
     * 实收金额
     */
    private BigDecimal actuallyMoney;
    /**
     * 找零
     */
    private BigDecimal change;
    /**
     * 销售日期
     */
    private Date sellDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSId() {
        return sId;
    }

    public void setSId(Integer sId) {
        this.sId = sId;
    }

    public Integer getEId() {
        return eId;
    }

    public void setEId(Integer eId) {
        this.eId = eId;
    }

    public Integer getPayMethodId() {
        return payMethodId;
    }

    public void setPayMethodId(Integer payMethodId) {
        this.payMethodId = payMethodId;
    }

    public BigDecimal getSAmount() {
        return sAmount;
    }

    public void setSAmount(BigDecimal sAmount) {
        this.sAmount = sAmount;
    }

    public BigDecimal getActuallyMoney() {
        return actuallyMoney;
    }

    public void setActuallyMoney(BigDecimal actuallyMoney) {
        this.actuallyMoney = actuallyMoney;
    }

    public BigDecimal getChange() {
        return change;
    }

    public void setChange(BigDecimal change) {
        this.change = change;
    }

    public Date getSellDate() {
        return sellDate;
    }

    public void setSellDate(Date sellDate) {
        this.sellDate = sellDate;
    }

}